import { RewardType } from "core/typeDefine/typeDefine";

export default {
    //祭天
    worshipTimes: 5,//每日祭天基础次数
    worshipGetPoint: [5, 1],//每日凌晨根据祭祀等级获得祭祀点
    // worshipGetPackagePropRate: [15, 0.2, 0, 0, 0, 1],//根据祭祀等级祭天直接获得套装碎片的概率
    worshipGetExp: [1, 0],
    worshipLvlUpNeedExp: [5, 2, 3],
    worshipLvlMax: 50,
    worshipRate: 70,//祭天专属套装碎片的概率
    worshipGetProps: {
        0: [209001, 209004, 209007, 209010],
        1: [209002, 209005, 209008, 209011],
        2: [209003, 209006, 209009, 209012],
    },


    //翻牌
    cardsAmount: [8, 12, 5],// 8张普通卡 12张高级卡 5张顶级卡
    visibleCardAmount: 3,//明牌数量
    addVisibleNeedFlipTimes: 3,//翻卡3张后再给一张明牌
    cards: [207001, 207002, 207003, 207004, 207005, 207006],
    cardIndexs: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24],
    rewardsOfCard: [//金币 精石 进阶石
        [{ id: 'gold', amount: 7 }, { id: 200001, amount: 15 }, { id: 200005, amount: 5 }],
        [{ id: 'gold', amount: 10 }, { id: 200001, amount: 20 }, { id: 200005, amount: 10 }],
        [{ id: 'gold', amount: 15 }, { id: 200001, amount: 25 }, { id: 200005, amount: 15 }],
    ],
    rewardDescOfCard: ['五同', '四同', '葫芦', '三同', '两对', '一对', '全单'],
    flipCardTimes: 6,//基础翻牌次数

    // dayUpLuckyTimes: 3,//每日升级时运的次数
    // luckyTypes: {
    //     xunbao: { name: '[幸运寻宝]幸运值', desc: '增加幸运寻宝活动获得高级宝箱和彩蛋的概率', upPer: 1 },
    //     card: { name: '[翻牌赏金]幸运值', desc: '翻牌赏金活动获得的金币+', upPer: 1 },
    //     maze: { name: '[勇闯迷宫]幸运值', desc: '勇闯迷宫活动获得的积分+', upPer: 1 },
    // },
    // resetLuckyNeedDiamond: 5,//重置幸运点每点的消耗
    // luckyPointMax: 100,//幸运上限

    //迷宫
    mazeMaps: [
        [0, 1, 10, 19, 18, 27, 36, 37, 38, 47, 56, 55, 54, 63, 72, 81, 90, 99, 100, 101, 92, 93, 94, 103,
            104, 105, 96, 87, 88, 79, 80, 71, 62, 53, 52, 43, 34, 35, 26, 17, 8, 7, 6, 5, 4, 13, 22, 31,
            40, 49, 50, 59, 68, 77, 76, 75, 66]
    ],
    mazeMapMax: 108,//地图总格子数量
    //点击探索地图消耗1点行动力,
    //消耗1点行动力战胜劫匪获得金币,
    //打开彩蛋获得材料,
    //寻到宝藏获得黄色/红色装备一件并可以选择重置地图
    //山川,河流挡住去路可以使用钻石 移山填海 打通道路
    //天堑不可通过
    mazeMapTypes: ['起点', '河流', '雪山', '道路', '劫匪', '彩蛋', '宝藏', '禁区'],
    mazeMapAmounts: [0, 18, 18, 30, 18, 8, 1, 5],
    mapData: {
        0: {
            desc: 0,//'这里是本次寻宝的起点' 
        },//起点
        1: {
            cost: { id: 'diamond', amount: 5 },
            get: [{ id: 200041, amount: 2 }],
            getNum: 1,
            desc: 1,//'花费5钻石,搭乘渔船通过河流,河流出产:水之灵'
        },//河流
        2: {
            cost: { id: 'diamond', amount: 5 },
            get: [{ id: 200041, amount: 2 }],
            getNum: 1,
            desc: 2,//'花费5钻石,雇佣向导翻越雪山,雪山出产:水之灵'
        },//山川
        3: {
            desc: 3,// '坑洼不平的道路' 
        },//道路

        4: {
            cost: { id: 'actionPower', amount: 1 },
            get: [{ id: 'gold', amount: 6 }],
            getNum: 1,
            desc: 4,//'消耗1点行动力,战胜劫匪获得金币'
        },//劫匪

        5: {
            cost: { id: 'actionPower', amount: 1 },
            get: [{ id: 200001, amount: 20 },//精石
            { id: 200003, amount: 2 },//乾坤石
            { id: 200006, amount: 2 },//能量剂
            { id: 200005, amount: 5 },//进阶石
            { id: 200009, amount: 2 },//精魂
            { id: 200041, amount: 1 },//水之灵
            { id: 200041, amount: 1 },//水之灵
            { id: 200041, amount: 1 },//水之灵
            { id: 200042, amount: 1 },//神草叶
            { id: 'actionPower', amount: 1 }],//行动力
            getNum: 2,
            desc: 5,//'消耗1点行动力,打开彩蛋获得一些随机资源'
        },//彩蛋

        6: {
            cost: { id: 'actionPower', amount: 3 },
            get: [{ id: 200002, amount: 10 },//黑曜石
            { id: 200003, amount: 15 },//乾坤石
            { id: 200006, amount: 10 },//能量剂
            { id: 200005, amount: 60 },//进阶石
            { id: 200008, amount: 1 },//兽元
            { id: 200009, amount: 6 },//精魂
            { id: 200032, amount: 1 },//黄金沙漏
            { id: 200040, amount: 2 },//祭灵
            { id: 200041, amount: 10 },//水之灵
            { id: 200042, amount: 4 },//神草叶
            { id: 'equipment', amount: 1, minQuality: 4 }],
            getNum: 11,
            desc: 6,//'消耗3点行动力,开启宝藏获得大量资源'
        },//宝藏    getNum表示获得几种get里的资源

        7: {
            cost: { id: 'diamond', amount: 10 },
            get: [{ id: 200042, amount: 1 }],
            getNum: 1,
            desc: 7,//'花费10钻石,贿赂守卫通过禁区,禁区出产:神草叶'
        },//禁区
    },
    bzPoses: [8, 17, 25, 34, 44, 51, 53, 64, 67, 70, 75, 77, 81, 83, 85, 87, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98],//宝藏可能出现的位置
    actionPowerMax: 20,//每日行动力上限

    //闯阵
    explorePowerMax: 10,//每日闯阵探索点上限
    frontScore: [2.8, 0.2],//根据闯阵进度每日领取积分
    // frontItems:{0:'enemy0',1:'enemy1',2:'enemy2',3:'frontEye',4:'chest'},
    frontItems: ['enemy0', 'enemy1', 'enemy2', 'frontEye', 'chest', 'null'],
    frontItemAmounts: [2, 2, 2, 2, 1],
    frontLvlMax: 200,
    frontMaps: [300203, 300204, 300205],
    frontMonsterLvlUp: [20, 5],//闯阵敌人等级=(法阵楼层+20)*5
    buyItemsUseFrontScore: [200043, 200044, 200045, 200046, 200047, 200048],

    //贸易
    tradeTimes: 3,//每日交易基础次数
    tradeGetExp: [1, 0],
    tradeLvlUpNeedExp: [5, 2, 3],
    tradeLvlMax: 30,
    tradeLvlGetPer: [0, 1],//商人等级每级增加的收益%
    tradeUseItems: [//7种
        { id: 200001, amount: 200 },//精石
        { id: 200002, amount: 20 },//黑曜石
        { id: 200003, amount: 20 },//乾坤石
        { id: 200005, amount: 70 },//进阶石
        { id: 200006, amount: 40 },//能量剂
        { id: 200008, amount: 5 },//兽元
        { id: 200009, amount: 20 },//精魂
        { id: 200040, amount: 10 },//祭灵

    ],
    tradeGetItems: [
        { id: 'gold', amount: 60 },
        { id: 'tradeScore', amount: 200 },
        { id: 200049, amount: 20 },
    ],
    tradeGoodsAmountMax: 12,
    tradeUseIndexs: [0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7],
    tradeGetIndexs: [0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2],
}